#include "srv_engine.hpp"
#include "srv_plugin_manager.hpp"

#include "project_manager/api/pm_project.hpp"

/*---------------------------------------------------------------------------*/

namespace Server {

/*---------------------------------------------------------------------------*/


Engine::Engine()
	:	m_projectManager( PluginManager::getInstance().getProjectManager() )
{
}


/*---------------------------------------------------------------------------*/


Engine::~Engine()
{
}


/*---------------------------------------------------------------------------*/


void
Engine::run()
{
	ProjectManager::Repository& repo = m_projectManager.newRepository( "r", "url", "u", "p" );
	ProjectManager::Trigger& trigger = m_projectManager.newTrigger( repo, 1 );

	m_triggersRunner.runTrigger( trigger );
}


/*---------------------------------------------------------------------------*/

} // namespace Server
